@echo 安卓和QT开发工具安装
choco -v
IF %ERRORLEVEL% NEQ 1 goto next
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin

:next
@choco source add -n=kaikong -s"http://123.207.157.205:8181/nuget/choco"
@choco source remove -n=chocolatey
@choco source add -n=chocolatey -s"https://chocolatey.org/api/v2/"  --priority=3

echo 正在安装Android Studio , 1/2
choco install androidstudio -y
IF %ERRORLEVEL% NEQ 0 goto error
echo 正在安装QT sdk , 2/2
cinst qt -y
IF %ERRORLEVEL% NEQ 0 goto error

:error
pause
EXIT(1)

:ok
exit(0)